package com.example.jogo2d;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.graphics.Rect;

public class Nave {


Paint paint = new Paint();
int halfWidth;
int halfHeight;
public static Rect rectNave;
Nave(Canvas canvas, float x,float y,Bitmap bitmap)
{

	halfWidth = bitmap.getWidth()/2;
	halfHeight = bitmap.getHeight()/2;
	rectNave = new Rect((int)x - halfWidth+30 ,240-halfHeight+30,(int)x+halfWidth+30,250+halfHeight+30);
	canvas.drawBitmap(bitmap,null,rectNave, paint);

}
}
